<?php
namespace app\index\controller;

class Setting extends Base {
	public function index() {
		// if ($this->check_auth() !== true) {
		// 	header("Location:http://coco3g-app/close_open_new_window?newtag=login&callbackTag=callback_1488956498800");
		// 	exit();
		// }
		$this->assign('title', '设置');
		return $this->fetch('');
	}
	//账户安全
	public function account_sec() {
		$this->assign('title', '账户安全');
		return $this->fetch();
	}
	//关于我们
	public function aboutus() {
		// $version = Cache::get("AppVersion");
		//       $i = 0;
		//       foreach($version as $v){
		//           $i++;
		//           if($i > 1) break;
		//           $versiond = $v['version'];
		//       }
		//       $this->assign('version', $versiond);
		$this->assign('title', '关于我们');
		return $this->fetch();
	}
	//意见反馈
	public function opinion() {
		if ($this->check_auth() !== true) {
			header("Location:http://coco3g-app/close_open_new_window?newtag=login&callbackTag=callback_1488956498800");
			exit();
		}
		$this->assign('title', '意见反馈');
		return $this->fetch();
	}
	public function encourage() {
		$this->assign('title', '鼓励一下');
		return $this->fetch();
	}
	public function copyright() {

		$this->assign('title', '版权信息');
		return $this->fetch();
	}
}